﻿

	
<!DOCTYPE html>  
<html>  
<head>  
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">  
    <meta name="keywords" content="员工KPI">  
    <meta name="description" content="员工KPI">  
    <title>员工KPI</title>  
    
    <%@ include file="/WEB-INF/inc/default.jsp"%>
    <jsp:include page="/WEB-INF/inc/dic.jsp"/>

</head> 
 
<body>  
    
      
    <table id="dg"  style="height:555px"  
            url="/report/report/kpilist.do"  
            toolbar="#toolbar" pagination="true"  
            rownumbers="true" pageSize="20" fitColumns="true" loadMsg="正在查询,请稍候..." singleSelect="false">  

    </table>  
    <div id="toolbar">  
        公司名:<input id="input_custName" name="custName" class="easyui-box" style="width:80px">
        招聘职位:<input id="input_jobName" name="jobName" class="easyui-box" style="width:80px">
        人选姓名:<input id="input_cvName" name="cvName" class="easyui-box" style="width:80px">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="quickQuery()">查询</a>
    </div>  
    
   
    
    <script type="text/javascript">  
        var url;  
        
        
		    
		   
      
        function reload(){        	
        	  $('#dg').datagrid('reload');
        }
        function find(){  
              
                //$('#dlg_query').dialog('open').dialog('setTitle','查询');  
                
                //url = '/project/contractJobCvOffer/list.do';  
                 queryWin.window('open');   
                 queryWin.openWin=window; 
              
        } 
        function quickQuery(){                                  
                var formdata='{';
                formdata='custName:'+'"'+$('#input_custName').val()+'"'+'}';
                formdata=',jobName:'+'"'+$('#input_jobName').val()+'"'+'}';
                formdata=',cvName:'+'"'+$('#input_cvName').val()+'"'+'}';
                formdata='}';
                
                var jsondata=eval('('+formdata+')');
                
                //if (!$('#fm_query').form('validate')) return; 
                $('#dg').datagrid({
	                  queryParams: jsondata
                });
               //$('#dlg_query').dialog('close');
              
        }
        	
        function query(formdata){  
                
                $('#dg').datagrid({
	                  queryParams: array2json(formdata)
                });
              
        }
        
        //生成grid的字段,需要字典的自动转换
        $('#dg').datagrid({
        	   columns:[[
        	   	        	   	        	   	
        	   	   {field:'custName',title:'客户公司', width:100}
        	   	   ,{field:'jobName',title:'录用职位', width:100}
        	   	   ,{field:'cvName',title:'录用人选', width:100}
        	   	   ,{field:'mobile',title:'手机', width:100}
        	   	   ,{field:'phone',title:'电话', width:100}
        	   	   ,{field:'email',title:'电邮', width:100}
        	   	   ,{field:'applyD',title:'录用日期', width:100}
        	   	   ,{field:'ondutyDt',title:'上班日期', width:100}
        	   	   ,{field:'jobManager',title:'职位负责人', width:100}
        	   	   ,{field:'cvNameEn',title:'英文名', width:100,hidden:true}
        	   	   ,{field:'sex',title:'性别', width:100,
        	   		      formatter: function(value,row,index){
        	   		      	return __getConstantCategoryCodeValue('SEX', value);
        	   		      },hidden:true
        	   	     }
        	   	    ,{field:'industry',title:'行业', width:100,
        	   		      formatter: function(value,row,index){
        	   		      	return __getCategory('INDUSTRY', value);
        	   		      },hidden:true
        	   	     }
        	   	    ,{field:'function',title:'职能', width:100,
        	   		      formatter: function(value,row,index){
        	   		      	return __getCategroyCodeValue('JOB', value);
        	   		      },hidden:true
        	   	     }  
        	   	    ,{field:'workYear',title:'工作年限', width:100}
        	   	    ,{field:'degree',title:'学历', width:100,
        	   		      formatter: function(value,row,index){
        	   		      	return __getCategroyCodeValue('DEGREE', value);
        	   		      },hidden:true
        	   	     }
        	   	     ,{field:'level',title:'职级', width:100,
        	   		      formatter: function(value,row,index){
        	   		      	return __getCategroyCodeValue('JOBLEVEL', value);
        	   		      },hidden:true
        	   	     }
        	   	     ,{field:'married',title:'婚姻状况', width:100,
        	   		      formatter: function(value,row,index){
        	   		      	return __getCategroyCodeValue('MARRIED', value);
        	   		      },hidden:true
        	   	     }
        	   	   
        	   	
        	   	
        	   ]]
        	   ,onDblClickRow: function(rowIndex, rowData){
        	    	$('#dlg').dialog('open').dialog('setTitle','修改职位Offer');                  
                $('#fm').form('load','/project/contractJobCvOffer/get.do?id='+rowData.id);  
                url = '/project/contractJobCvOffer/update.do';        	    	
        	    }
        }); 
        //完成-生成grid的字段
        
        
        
    </script>  
     
     

     
     
     
</body>  
</html>